package com.wfcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfCourseRecordDao;
import com.wfcm.datasource.DynamicDataSource;
import com.wfcm.entity.WfCourseRecordEntity;
import com.wfcm.service.WfCourseRecordService;



@Service("wfCourseRecordService")
public class WfCourseRecordServiceImpl implements WfCourseRecordService {
	@Autowired
	private WfCourseRecordDao wfCourseRecordDao;
	
	@Override
	public WfCourseRecordEntity queryObject(Integer id){
		WfCourseRecordEntity courseRecord = wfCourseRecordDao.queryObject(id);
		return courseRecord;
	}
	
	@Override
	public List<WfCourseRecordEntity> queryList(Map<String, Object> map){
		return wfCourseRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfCourseRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(WfCourseRecordEntity wfCourseRecord){
		wfCourseRecordDao.save(wfCourseRecord);
	}
	
	@Override
	public void update(WfCourseRecordEntity wfCourseRecord){
		wfCourseRecordDao.update(wfCourseRecord);
	}
	
	@Override
	public void delete(Integer id){
		wfCourseRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfCourseRecordDao.deleteBatch(ids);
	}
	
}
